package com.lyn.tencent_health_code.entity;

import com.alibaba.fastjson.JSON;

/**
 * @author almost
 */
public class CommonOut {
    private String errMsg;
    private String requestId;
    private Long resultCode;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public CommonOut() {
    }

    @SuppressWarnings("all")
    public String getErrMsg() {
        return this.errMsg;
    }

    @SuppressWarnings("all")
    public String getRequestId() {
        return this.requestId;
    }

    @SuppressWarnings("all")
    public Long getResultCode() {
        return this.resultCode;
    }

    @SuppressWarnings("all")
    public void setErrMsg(final String errMsg) {
        this.errMsg = errMsg;
    }

    @SuppressWarnings("all")
    public void setRequestId(final String requestId) {
        this.requestId = requestId;
    }

    @SuppressWarnings("all")
    public void setResultCode(final Long resultCode) {
        this.resultCode = resultCode;
    }

    @Override
    @SuppressWarnings("all")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof CommonOut)) return false;
        final CommonOut other = (CommonOut) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$resultCode = this.getResultCode();
        final Object other$resultCode = other.getResultCode();
        if (this$resultCode == null ? other$resultCode != null : !this$resultCode.equals(other$resultCode)) return false;
        final Object this$errMsg = this.getErrMsg();
        final Object other$errMsg = other.getErrMsg();
        if (this$errMsg == null ? other$errMsg != null : !this$errMsg.equals(other$errMsg)) return false;
        final Object this$requestId = this.getRequestId();
        final Object other$requestId = other.getRequestId();
        if (this$requestId == null ? other$requestId != null : !this$requestId.equals(other$requestId)) return false;
        return true;
    }

    @SuppressWarnings("all")
    protected boolean canEqual(final Object other) {
        return other instanceof CommonOut;
    }

    @Override
    @SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $resultCode = this.getResultCode();
        result = result * PRIME + ($resultCode == null ? 43 : $resultCode.hashCode());
        final Object $errMsg = this.getErrMsg();
        result = result * PRIME + ($errMsg == null ? 43 : $errMsg.hashCode());
        final Object $requestId = this.getRequestId();
        result = result * PRIME + ($requestId == null ? 43 : $requestId.hashCode());
        return result;
    }
    //</editor-fold>
}
